package com.trinity.orders.service;

import com.trinity.orders.domain.XcOrdersGoods;

import java.util.List;

/**
 * 订单详情Service接口
 *
 * @author trinity
 * @date 2023-11-19
 */
public interface IXcOrdersGoodsService
{
    /**
     * 查询订单详情
     *
     * @param id 订单详情主键
     * @return 订单详情
     */
    public XcOrdersGoods selectXcOrdersGoodsById(Long id);

    /**
     * 查询订单详情列表
     *
     * @param xcOrdersGoods 订单详情
     * @return 订单详情集合
     */
    public List<XcOrdersGoods> selectXcOrdersGoodsList(XcOrdersGoods xcOrdersGoods);

    /**
     * 新增订单详情
     *
     * @param xcOrdersGoods 订单详情
     * @return 结果
     */
    public int insertXcOrdersGoods(XcOrdersGoods xcOrdersGoods);

    /**
     * 修改订单详情
     *
     * @param xcOrdersGoods 订单详情
     * @return 结果
     */
    public int updateXcOrdersGoods(XcOrdersGoods xcOrdersGoods);

    /**
     * 批量删除订单详情
     *
     * @param ids 需要删除的订单详情主键集合
     * @return 结果
     */
    public int deleteXcOrdersGoodsByIds(Long[] ids);

    /**
     * 删除订单详情信息
     *
     * @param id 订单详情主键
     * @return 结果
     */
    public int deleteXcOrdersGoodsById(Long id);
}
